import sys

sys.path.append('.')
from config.config import Config
import logging
import os

# ====================
# dev environment config
# ===============================


class ProConfig(Config):
    DEBUG = False
    RELOAD = False
    HOST = '0.0.0.0'
    HTTP_PORT = 6002

    HTTP_CONFIG = {
        "redoc_url": None,
        "docs_url": None,
        "title": 'Account',
        "description": 'This project is a auto sell account.',
        "version": "1.0"
    }
    MYSQL_HOST = os.environ.get("MYSQL_SELL_HOST")
    MYSQL_PORT = os.environ.get("MYSQL_SELL_PORT")
    MYSQL_USER = os.environ.get("MYSQL_SELL_USER")
    MYSQL_PASSWORD = os.environ.get("MYSQL_SELL_PASSWORD")
    MYSQL_DB_NAME = "auto_sell_account"

    SECRET_KEY = "af9c356da4c011fbe0c0b9591fabd49de0a00b818600223c85003ac8bff52695"
    ALGORITHM = "HS256"
    ACCESS_TOKEN_EXPIRE_MINUTES = 60 * 24 * 15
    ADD_EXCEPTION_HANDLERS = False
